using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using Facebook.Web;
using Facebook.Api.DemoSite.Models;
using System.Text;
using Facebook.Web.Mvc;

namespace Facebook.Api.DemoSite.Controllers
{
    public class AuthController : FacebookMvcController
    {
        public ActionResult Revoke()
        {
            this.FbContext.Auth.RevokeAuthorization(Int64.Parse(this.Request.Params["fb_sig_user"]));
            this.FbContext.Session.Expires = DateTime.Now;

            return new FbRedirectResult("http://apps.facebook.com/dotnetapi/");
        }
    }
}